package util;

import java.io.Serializable;

/**
 * 奥拓类
 */
public class Auto extends Car implements Serviceable {
    private int speed;
    public Auto(int speed) {
        this.speed = speed;
    }

    @Override
    public void turnupEngine() {
        System.out.println("给奥拓调节引擎");
    }


    @Override
    public void changeOil() {
        System.out.println("给奥拓换机油");
    }
    public String toString(){
        return this.speed+"";
    }
    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }


}
